package com.edgclub.edg.utils.util;

import java.util.Locale;

/**
 * Created by Administrator on 2015/11/10.
 */
public class LanguageUtil {

    public static String getLanguageEnv() {
        Locale l = Locale.getDefault();
        String language = l.getLanguage();
        String country = l.getCountry().toLowerCase();
        if ("zh".equals(language)) {
            if ("cn".equals(country)) {
                language = "zh-CN";
            } else if ("tw".equals(country) || "hk".equals(country)) {
                language = "zh-TW";
            }
        }
        return language;
    }


}
